package com.scheuk.data;

import java.util.Arrays;
import java.util.List;

import com.google.common.collect.HashMultiset;
import com.google.common.collect.Multiset;

public class GoogleCollections {

	public static void testMultiset(List<String> words)
	{
		Multiset<String> wordsMultiset = HashMultiset.create(); 
		wordsMultiset.addAll(words);
		int count = wordsMultiset.count("Hello");
		
		System.out.println("found Hello: " + count);
	}
	
	public static void main(String[] args)
	{
		String[] collection = {"Hello", "word", "String", "hello", "create", "Google"};
		GoogleCollections.testMultiset(Arrays.asList(collection));
	}
}
